package TEST;

import java.io.File;

public class Test3 {
    public static void main(String[] args) {
        File file = new File("F:/test");
        String[] fileName = file.list();
        for (String name : fileName) {
            int index = name.lastIndexOf(".");
            String name1 =name.substring(0,index);
            System.out.println(name1);
        }
    }
}
